package com.heima.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.heima.model.annotation.IdEncrypt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 * APP阅读行为表
 */
@ApiModel(value = "com-heima-model-behavior-pojos-ApReadBehavior")
@Data
@TableName(value = "ap_read_behavior")
public class ApReadBehavior {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 用户ID
     */
    @IdEncrypt
    @TableField(value = "entry_id")
    @ApiModelProperty(value = "用户ID")
    private Integer entryId;

    /**
     * 文章ID
     */
    @IdEncrypt
    @TableField(value = "article_id")
    @ApiModelProperty(value = "文章ID")
    private Integer articleId;

    @TableField(value = "count")
    @ApiModelProperty(value = "")
    private Short count;

    /**
     * 阅读时间单位秒
     */
    @TableField(value = "read_duration")
    @ApiModelProperty(value = "阅读时间单位秒")
    private Integer readDuration;

    /**
     * 阅读百分比
     */
    @TableField(value = "percentage")
    @ApiModelProperty(value = "阅读百分比")
    private Short percentage;

    /**
     * 文章加载时间
     */
    @TableField(value = "load_duration")
    @ApiModelProperty(value = "文章加载时间")
    private Short loadDuration;

    /**
     * 登录时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "登录时间")
    private Date createdTime;

    @TableField(value = "updated_time")
    @ApiModelProperty(value = "")
    private Date updatedTime;

    @JsonIgnore
    @TableField(value = "burst")
    @ApiModelProperty(value = "")
    private String burst;
}
